home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.internetmci.com!panix!usenet
- From: dm@panix.com (Dan'l)
- Newsgroups: comp.lang.c
- Subject: Can't figure this out
- Date: Fri, 19 Jan 1996 21:11:43 GMT
- Organization: PANIX Public Access Internet and Unix, NYC
- Message-ID: <31000091.3778302@news.panix.com>
- NNTP-Posting-Host: dm.dialup.access.net
- X-Newsreader: Forte Agent .99d/32.168
-
- I am learning C and I have not had any problems understanding most
- concepts I have learned so far. But to date I still can't figure out
- how the outcome of this program is 15. Somehow one of the B's ends up
- a three and the other B a 5, or am I so off base that I can't see
- what's really happening. Can someone please walk me through this
- one. Thanks Dan'l
-
- #define A 3
- #define B A + A
- #define C B * B
-
- main()
- {
- printf("%d", C);
- return 0;
- }
-